package com.an.blog.admin.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.an.common.annotation.ExcelDictFormat;
import com.an.common.convert.ExcelDictConvert;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 博客相册视图对象 blog_album
 *
 * @author Ann
 * @date 2023-05-08
 */
@Data
@ExcelIgnoreUnannotated
public class BlogAlbumVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ExcelProperty(value = "id")
    private Long albumId;

    /**
     * 相册名称
     */
    @ExcelProperty(value = "相册名称")
    private String albumName;

    /**
     * 相册描述
     */
    @ExcelProperty(value = "相册描述")
    private String albumDesc;

    /**
     * 相册封面
     */
    @ExcelProperty(value = "相册封面")
    private Long albumImage;

    /**
     * 状态（0正常 1禁用）
     */
    @ExcelProperty(value = "状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=正常,1=禁用")
    private String status;

    /**
     * 相册封面url
     */
    @ExcelProperty(value = "相册封面Url")
    private String albumImageUrl;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "添加时间")
    private Date createTime;
}
